from graph import *
x = 0
y = 0
s = 1
s = int(input())
x = int(input())
y = int(input())
penSize(3)
penColor('red')
brushColor('red')
d = 10
d = d*s
if x +3*d > 500 and y+d*2 > 500 and x <= 0 and y <= 0 and s != 0:
    exit()
else:
    polygon([(x, y), (x+d,y ), (x+d, y+d), (x+d*2, y+d), (x+d*2, y), (x+d*3, y), (x+d*3, y+d*2), (x, y+d*2), (x, y)])
    run()